<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h1>首页</h1>
</body>
<script src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
<script>

    var username = localStorage.getItem('username');
    var token = localStorage.getItem('token');
    $.ajax({
        url: '/user/checkToken',
        type: 'post',
        data: {
            'username':username,
            'token':token
        },
        dataType:'json',
        success:function (res) {
            console.log(JSON.stringify(res));
        }
    });
</script>
</html>